<!--
 * @Description:
 * @version:
 * @Author: 娃哈哈
 * @Date: 2024-12-18 23:34:22
-->
<!--
 * @Description:
 * @version:
 * @Author: 娃哈哈
 * @Date: 2024-12-18 20:58:23
-->
<template>
    <div class="box">
        <bgBox>
            <sectionTitle title="企业销售额" />
            <div class="content">
                <barMixEcharts :data="data"/>
            </div>
        </bgBox>
    </div>
</template>

<script setup lang="ts">
import bgBox from '../components/bgBox.vue'
import sectionTitle from '../components/sectionTitle.vue'
import mixEcharts from '../components/mixEcharts.vue'
import barMixEcharts from '../components/barMixEcharts.vue'
import { currentGET } from "@/api";
import { PopupType } from '../../index.d'
import { inject } from 'vue'
import { ref, reactive } from "vue";
const showPopup = inject('showPopup') as (data: PopupType) => void;
/**
 * 获取列表点击事件
 */
const titleClick = (item: Object) => {
  console.log(item)
    showPopup({ type: 21, show: true, popupFlag: 'enterpriseList', searchInfo: { }})
    // showPopup({ type: 5, show: true, popupFlag: 'info', })
}
const data = ref([]);
const getData = () => {
  currentGET("enterpriseTurnover").then((res) => {
    console.log(res);
    if (res.success) {
      data.value = res.data;
    }
  });
};
getData();
</script>

<style scoped lang="less">
.box {
    height: 410px;
}

.content {
    height: 380px;
}
</style>